from PIL import Image
img=Image.open("lab3/lenna_1920x1080_g.png")
pixles=img.load()
f=open('LAB3/img.txt','w+')
for i in range(1920):
    for j in range(1079):
        f.write('{} '.format(pixles[i,j]))
    f.write('{}{}'.format(pixles[i,1079],'\n'))
f.close()
img.close()
pass